﻿using NoticeHelper.Dingtalk.DingtalkCustomRobotSdk;
using System;
using System.Collections.Generic;
using System.Text;

namespace Helpers
{
    public class NoticeOptions
    {
        public static NoticeOptions Instance { get; internal set; }

        public const string SectionName = nameof(NoticeOptions);
        /// <summary>
        /// 默认每次都发送
        /// </summary>
        public long IntervalSeconds { get; set; }
        public Dictionary<string, long> IntervalMap { get; set; }
        public bool UseEmail { get; set; }
        public MailConfig EmailConfig { get; set; }
        public bool UseDingTalk { get; set; }
        public DingtalkOptions DingtalkOptions { get; set; }
    }
}
